package com.ems.sys.config;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class test {


    public static void main(String[] args) {
        String bCryptPasswordEncoder=new BCryptPasswordEncoder().encode("123456");
        System.out.println(bCryptPasswordEncoder);

        boolean matches = new BCryptPasswordEncoder().matches("123465", bCryptPasswordEncoder);
        System.out.println(matches);
    }
}
